#include <iosteam>
#include "Observer.cpp"
class Achievements : public Observer{
    public:
        virtual void onNotify(const Entity& entity, Event event){
            switch(event){
                case EVENT_ENTITY_FELL:
                    if(entity,isHero() && heroIsOnBridge_){
                        unlock(ACHIEVEMENT_FELL_OFF_BRIDGE);
                    }
                    break;
            }
        }
    private:
        void unlock(Achievement achievement){
            //Unlock if not already unlocked...
        }
        bool heroIsOnBridge_;                            
};